using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Initer : MonoBehaviour
{
    static Initer sIniter = null;
    private void Awake()
    {
        if(sIniter != null)
        {
            Destroy(sIniter.gameObject);
            sIniter = null;
        }
        sIniter = this;
        DontDestroyOnLoad(gameObject);
    }

    void Update()
    {
        Model.Instance().Update(Time.deltaTime);
    }

    void OnDestroy()
    {
        if(this == sIniter)
        {
            sIniter = null;
        }
    }
}